const messageRouter = require("../");
const mr = messageRouter(require("process"));
async function run() {
	let {data, type, response} = await mr.request({data:0, type:"request"});
	console.log("request", data, type);
	({data, type, response} = await response(2, "request"))
	console.log("request", data, type);
	({data, type, response} = await response(4, "request"))
	console.log("request", data, type);
	return  response(6, "request");
}
run().catch(e => console.log(e));